<template>
  <div>
    <ul>
      <li v-for="(item,index) in msg" :key="index">
        {{item}}
      </li>
    <button @click="btn">走一走</button>
    </ul>
  </div>
</template>

<script>
export default {
data () {
  return {
    msg:[`帅哥`,`美女`,`程序猿`]
  }
},
methods: {
  btn(){
    this.msg=this.msg.reverse(``)
  }
}
}
</script>

<style>

</style>